<template>
    <div>
        <mt-swipe :auto="2500">
            <mt-swipe-item v-for="item in bannerList" :key="item.clickUrl" :class="{full: isFull}" >
                <img :src="item.image" alt="轮播图">
            </mt-swipe-item>
        </mt-swipe>
    </div>
</template>

<script>
    export default {
        props: ['bannerList', 'isFull']
    }
</script>

<style scoped lang="scss">
    .mint-swipe {
        height: 200px;
        .mint-swipe-item {
            text-align: center;
            img {
                height: 100%;
            }
        }
    }
    .full {
        img {
            width: 100%;
        }
    }
</style>
